package com.qyhl.shop.shop.showcase.detail;

import com.qyhl.webtv.commonlib.entity.shop.ShopShowcaseBean;

public class ShopShowcaseDetailPresenter implements ShopShowcaseDetailContract.ShopShowcaseDetailPresenter {
    private ShopShowcaseDetailContract.ShopShowcaseDetailView mView;
    private ShopShowcaseDetailModel mModel;

    public ShopShowcaseDetailPresenter(ShopShowcaseDetailContract.ShopShowcaseDetailView mView) {
        this.mView = mView;
        this.mModel = new ShopShowcaseDetailModel(this);
    }

    @Override
    public void getDetail(int itemId) {
        mModel.getDetail(itemId);
    }

    @Override
    public void setDetail(ShopShowcaseBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
